home *** CD-ROM | disk | FTP | other *** search
/ Amiga News 95 / Amiga News 95.iso / dpat / dpat106 / bexchange11 / install_français < prev    next >
Text File  |  1995-07-25  |  7KB  |  323 lines

  1. ;
  2. ; $VER: Installation de BGUI-Exchange v1.1 (25.7.1995)
  3. ;
  4. ;       Installer script pour BGUI-Exchange.
  5. ;
  6.  
  7.         (set UserLevel.old @user-level)
  8.  
  9. ; Initialisation des messages.
  10.  
  11.         (set Language 16)
  12.  
  13.         (set #WrongKickStart "\nBGUI-Exchange ne fonctionne qu'avec un KickStart >= à 2.04.")
  14.  
  15.  
  16.  
  17. ; S'assurer que l'on utilise un KickStart >= à 2.04.
  18.  
  19.         (if (< (/ (getversion) 65536) 37)
  20.           (abort #WrongKickStart)
  21.         )
  22.  
  23.  
  24. (set LangueHelp "Choisisser dans quelle langue vous voulez la documentation.")
  25.  
  26. (set IconHelp "Choisissez dans quel format vous-voulez vos icônes:\n\n- 4 couleurs:          Icônes standards\n- 8 couleurs MagicWB : Standard MagicWB\n- NewIcon :            Standard NewIcon")
  27. (set bguiHelp "La bgui.library est une library facilitant la création d'interface et offrant de plus belle interface\n\nbgui.library   (C) 1993-1995 Jan van den Baard")
  28. (set Refresh  "Mode de refresh de la fenêtre")
  29. (set Aspect   "Choix de l'epaisseur des bordures:\n\n- AutoAspect:  Respecte le ration écran\n- Thin:        Force le mode fin\n- Standard:    Comme le système")
  30. (set Frame    "Choix du look des boutons")
  31. (set WindowPos  "De quel façon la fenêtre doit s'ouvrir ?")
  32. (set NewLook    "Le mode NewLook Permet d'avoir en blanc la barre scroller de la listview")
  33.  
  34. ;
  35. ; Répertoire de destination
  36. ; *************************
  37. ;
  38.  
  39. (set Path.source (pathonly @icon) )
  40.  
  41. (set  Path.dest
  42.         (askdir
  43.                 (prompt "\nSélectionner ou créer un répertoire dans lequel vous voulez installer BGUI-Exchange.\n")
  44.                 (help @askdir-help)
  45.                 ;(default "RAM:")
  46.                 (default "Sys:Tools/Commodities")
  47.         )
  48. )
  49.  
  50.  
  51. ; Copie de l'executable
  52. ; **********************
  53. (copyfiles
  54.         (prompt "Copie de BGUI-Exchange")
  55.         (help @copyfiles-help)
  56.         (source Path.source)
  57.         (dest Path.dest)
  58.         (choices "BGUI-Exchange" "BGUI-Exchange.info")
  59. )
  60.  
  61.  
  62. ; Copie du catalogs Français
  63. ; **************************
  64. (set CatPath (tackon Path.dest "catalogs"))
  65. (makedir CatPath)
  66. (set CatPath (tackon Path.dest "catalogs/français"))
  67. (makedir CatPath)
  68.  
  69. (copyfiles
  70.     (prompt "Copie du catalogs de BGUI-Exchange")
  71.     (source Path.source)
  72.     (dest CatPath)
  73.     (choices "catalogs/français/BGUI-Exchange.catalog")
  74. )
  75.  
  76.  
  77. ; Copie de la documentation
  78. ; *************************
  79. (set Doc (askchoice
  80.             (prompt "Documentation de BGUI-Exchange")
  81.             (choices "Française" "Anglaise" "Allemande")
  82.             (help LangueHelp)
  83.             (default 0)
  84.  
  85.     )
  86. )
  87.  
  88.  
  89.     (if (= Doc 0)
  90.         (copyfiles
  91.             (source "BGUI-Exchange_FR.guide")
  92.             (dest Path.dest)
  93.             (newname "BGUI-Exchange.guide")
  94.             (infos)
  95.         )
  96.     )
  97.  
  98.     (if (= Doc 1)
  99.         (copyfiles
  100.             (source "BGUI-Exchange_ENG.guide")
  101.             (dest Path.dest)
  102.             (newname "BGUI-Exchange.guide")
  103.             (infos)
  104.         )
  105.     )
  106.  
  107.     (if (= Doc 2)
  108.         (copyfiles
  109.             (source "BGUI-Exchange_D.guide")
  110.             (dest Path.dest)
  111.             (newname "BGUI-Exchange.guide")
  112.             (infos)
  113.         )
  114.     )
  115.  
  116.  
  117.  
  118.  
  119.  
  120. ; On copie les icônes
  121. ; *******************
  122. (set Icon (askchoice
  123.             (prompt "Quel type d'icône voulez-vous utiliser ?")
  124.             (choices "4 couleurs" "MagicWB" "NewIcon")
  125.             (help IconHelp)
  126.     )
  127. )
  128.  
  129.     ; MagicWB ?
  130.     ; *********
  131.     (if (= Icon 1)
  132.         (
  133.         (copyfiles
  134.             (source "Icons/EXE_MagicWb.info")
  135.             (dest Path.dest)
  136.             (newname "BGUI-Exchange.info")
  137.         )
  138.  
  139.         (copyfiles
  140.             (source "Icons/Guide_MagicWb.info")
  141.             (dest Path.dest)
  142.             (newname "BGUI-Exchange.guide.info")
  143.         )
  144.         )
  145.     )
  146.  
  147.     ; NewIcon ?
  148.     ; *********
  149.     (if (= Icon 2)
  150.         (
  151.         (copyfiles
  152.             (source "Icons/EXE_NewIcon.info")
  153.             (dest Path.dest)
  154.             (newname "BGUI-Exchange.info")
  155.         )
  156.  
  157.         (copyfiles
  158.             (source "Icons/Guide_NewIcon.info")
  159.             (dest Path.dest)
  160.             (newname "BGUI-Exchange.guide.info")
  161.         )
  162.         )
  163.     )
  164.  
  165.  
  166. ; Copie de la bgui.library
  167. ; ************************
  168. (copylib
  169.     (prompt "Copie de la bgui.library")
  170.     (source "libs/bgui.library")
  171.     (dest "Libs:")
  172.     (help bguiHelp)
  173.     (confirm)
  174. )
  175.  
  176. ; Parametrage du programme
  177. ; ************************
  178.  
  179. ; On prend le chemin de destination et le nom
  180. (set DestName (tackon Path.dest "BGUI-Exchange"))
  181.  
  182.  
  183. ; ***********
  184. ; * REFRESH *
  185. ; ***********
  186. (set Icon (askchoice
  187.             (prompt "Quel type de refresh vous voulez pour la fenêtre ?")
  188.             (choices "SmartRefresh" "SimpleRefresh")
  189.             (help Refresh)
  190.     )
  191. )
  192.  
  193.     (if (= Icon 0)
  194.         (tooltype
  195.             (settooltype "SMARTREFRESH" "YES")
  196.             (dest DestName)
  197.         )
  198.     )
  199.  
  200.     (if (= Icon 1)
  201.         (tooltype
  202.             (settooltype "SMARTREFRESH" "NO" )
  203.             (dest DestName)
  204.         )
  205.     )
  206.  
  207. ; **********
  208. ; * ASPECT *
  209. ; **********
  210. (Set Icon (askchoice
  211.             (prompt "Quel aspect voulez-vous pour l'interface ?")
  212.             (choices "Automatique (en fonction de l'écran)" "Fin" "Standard")
  213.             (help Aspect)
  214.         )
  215. )
  216.     (if (= Icon 0)
  217.         (tooltype
  218.             (settooltype "ASPECT" "AUTO")
  219.             (dest DestName)
  220.         )
  221.     )
  222.  
  223.     (if (= Icon 1)
  224.         (tooltype
  225.             (settooltype "ASPECT" "THIN")
  226.             (dest DestName)
  227.         )
  228.     )
  229.  
  230.     (if (= Icon 2)
  231.         (tooltype
  232.             (settooltype "ASPECT" "STANDARD")
  233.             (dest DestName)
  234.         )
  235.     )
  236.  
  237. ; *********
  238. ; * FRAME *
  239. ; *********
  240. (Set Icon (askchoice
  241.             (prompt "Quel type de 'FRAME' voulez-vous pour l'interface ?")
  242.             (choices "Normal" "XEN")
  243.             (help Frame)
  244.         )
  245. )
  246.     (if (= Icon 0)
  247.         (tooltype
  248.             (settooltype "FRAME" "STANDARD")
  249.             (dest DestName)
  250.         )
  251.     )
  252.  
  253.     (if (= Icon 1)
  254.         (tooltype
  255.             (settooltype "FRAME" "XEN")
  256.             (dest DestName)
  257.         )
  258.     )
  259.  
  260.  
  261. ; *******************
  262. ; * NEWLOOKSCROLLER *
  263. ; *******************
  264. (Set Icon (askchoice
  265.             (prompt "Utiliser le mode NewLook pour le scroller de la ListView ?")
  266.             (choices "Oui" "Non")
  267.             (default 1)
  268.             (help NewLook)
  269.         )
  270. )
  271.     (if (= Icon 0)
  272.         (tooltype
  273.             (settooltype "NEWLOOKSCROLLER" "YES")
  274.             (dest DestName)
  275.         )
  276.     )
  277.  
  278.     (if (= Icon 1)
  279.         (tooltype
  280.             (settooltype "NEWLOOKSCROLLER" "NO")
  281.             (dest DestName)
  282.         )
  283.     )
  284.  
  285.  
  286. ; ******************
  287. ; * WINDOWPOSITION *
  288. ; ******************
  289. (Set Icon (askchoice
  290.             (prompt "Où voulez-vous que l'interface s'ouvre ?")
  291.             (choices "Au centre de l'écran" "Sous la souris" "En haut à gauche")
  292.             (help WindowPos)
  293.         )
  294. )
  295.     (if (= Icon 0)
  296.         (tooltype
  297.             (settooltype "WINDOWPOSITION" "CENTERSCREEN")
  298.             (dest DestName)
  299.         )
  300.     )
  301.  
  302.     (if (= Icon 1)
  303.         (tooltype
  304.             (settooltype "WINDOWPOSITION" "CENTERMOUSE")
  305.             (dest DestName)
  306.         )
  307.     )
  308.  
  309.     (if (= Icon 2)
  310.         (tooltype
  311.             (settooltype "WINDOWPOSITION" "TOPLEFT")
  312.             (dest DestName)
  313.         )
  314.     )
  315.  
  316. (message "Regarder la documation pour toutes les options")
  317.  
  318.  
  319.  
  320. (set @default-dest Path.dest )
  321.         (exit)
  322.  
  323.